Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Insert Subform into Form programatically
~Wendy Fezfanamarnivu 30.Dec.03 09:13 PM a Web browser
Domino Designer All Releases All Platforms


use lotus script to close the document and then open it again. here is an example, since i have tabs i have to set which tab to open to and then what filed to focus on. happens so fast you can not tell it has been done.

Sub AddLines10

Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim doc2 As Notesdocument
Dim DocUID As String
Set db = session.CurrentDatabase
Dim uidoc As NotesUIDocument
Dim uidoc2 As NotesUIDocument
Dim view As NotesView
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document
doc.reportsdesign = "Yes"
docUID = doc.DocID(0)
Call uidoc.Save
Set doc2 = db.GetDocumentByUNID (docUID)
Set uidoc2 = workspace.editdocument(False, doc2, False)
Call uidoc2.FieldSetText("tab", "2")
Call uidoc2.RefreshHideFormulas
Call uidoc2.Refresh
Call uidoc2.GotoField( "designlayout" )
Call uidoc.Close
End Sub




Insert Subform into Form programati... (~Tony Rehipiter... 30.Dec.03)
. . RE: Insert Subform into Form progra... (~Bill Frokimari... 30.Dec.03)
. . . . RE: Insert Subform into Form progra... (~Juan Prehipily... 31.Dec.03)
. . *use a computed subform. forumla wi... (~Hal Ektumiterl... 30.Dec.03)
. . . . RE: *use a computed subform. foruml... (~Tony Rehipiter... 30.Dec.03)
. . . . . . But a Computed SubForm can resovle ... (~Autumn Kijipym... 31.Dec.03)
. . RE: Insert Subform into Form progra... (~Wendy Fezfanam... 30.Dec.03)
. . RE: Insert Subform into Form progra... (~Kirk Elreterod... 31.Dec.03)
. . RE: Insert Subform into Form progra... (~Hank Quetamarn... 2.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS